/**
 * 列表右侧action操作栏*/
import {ref} from "vue";
import {Modal} from 'view-ui-plus'
import ScoreDetail from "@module-demo/scoreManage/views/score-detail.vue";
import config from '@/config'
export function useTableAction(){
    const {operate}=config.setting
    console.log(config);

    const scoreDetailRef=ref(null)

    function openDetail(row,operateType) {
        console.log(scoreDetailRef.value)
        scoreDetailRef.value.showModal(row, operateType)
        // Modal.info({
        //     title: operateType==operate.EDIT?'编辑':'查看'+'成绩',
        //     render: h => h(ScoreDetail,{
        //         detailData:row
        //     }),
        // })
    }
    return{
        scoreDetailRef,
        openDetail,

    }
}